package pojo;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;


public class CentroProdutor {
	private int id;
	private String descricao;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getDescricao() {
		return descricao;
	}
	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}
	/**
	 * @uml.property  name="centroMaterial"
	 * @uml.associationEnd  inverse="centroProdutor:pojo.CentroMaterial"
	 */
	private CentroMaterial centroMaterial;
	/**
	 * Getter of the property <tt>centroMaterial</tt>
	 * @return  Returns the centroMaterial.
	 * @uml.property  name="centroMaterial"
	 */
	public CentroMaterial getCentroMaterial() {
		return centroMaterial;
	}
	/**
	 * Setter of the property <tt>centroMaterial</tt>
	 * @param centroMaterial  The centroMaterial to set.
	 * @uml.property  name="centroMaterial"
	 */
	public void setCentroMaterial(CentroMaterial centroMaterial) {
		this.centroMaterial = centroMaterial;
	}
	/**
	 * @uml.property  name="centroMaterial1"
	 * @uml.associationEnd  multiplicity="(1 -1)" ordering="true" inverse="centroProdutor1:pojo.CentroMaterial"
	 */
	private ArrayList centroMaterial1;
	/**
	 * Getter of the property <tt>centroMaterial1</tt>
	 * @return  Returns the centroMaterial1.
	 * @uml.property  name="centroMaterial1"
	 */
	public ArrayList getCentroMaterial1() {
		return centroMaterial1;
	}
	/**
	 * Returns the element at the specified position in this list.
	 * @param index  index of element to return.
	 * @return  the element at the specified position in this list.
	 * @see java.util.List#get(int)
	 * @uml.property  name="centroMaterial1"
	 */
	public CentroMaterial getCentroMaterial1(int i) {
		return (CentroMaterial) centroMaterial1.get(i);
	}
	/**
	 * Returns an iterator over the elements in this list in proper sequence.
	 * @return  an iterator over the elements in this list in proper sequence.
	 * @see java.util.List#iterator()
	 * @uml.property  name="centroMaterial1"
	 */
	public Iterator centroMaterial1Iterator() {
		return centroMaterial1.iterator();
	}
	/**
	 * Returns <tt>true</tt> if this list contains no elements.
	 * @return  <tt>true</tt> if this list contains no elements.
	 * @see java.util.List#isEmpty()
	 * @uml.property  name="centroMaterial1"
	 */
	public boolean isCentroMaterial1Empty() {
		return centroMaterial1.isEmpty();
	}
	/**
	 * Returns <tt>true</tt> if this list contains the specified element.
	 * @param element  element whose presence in this list is to be tested.
	 * @return  <tt>true</tt> if this list contains the specified element.
	 * @see java.util.List#contains(Object)
	 * @uml.property  name="centroMaterial1"
	 */
	public boolean containsCentroMaterial1(CentroMaterial centroMaterial) {
		return centroMaterial1.contains(centroMaterial);
	}
	/**
	 * Returns <tt>true</tt> if this list contains all of the elements of the specified collection.
	 * @param elements  collection to be checked for containment in this list.
	 * @return  <tt>true</tt> if this list contains all of the elements of the specified collection.
	 * @see java.util.List#containsAll(Collection)
	 * @uml.property  name="centroMaterial1"
	 */
	public boolean containsAllCentroMaterial1(Collection centroMaterial1) {
		return this.centroMaterial1.containsAll(centroMaterial1);
	}
	/**
	 * Returns the number of elements in this list.
	 * @return  the number of elements in this list.
	 * @see java.util.List#size()
	 * @uml.property  name="centroMaterial1"
	 */
	public int centroMaterial1Size() {
		return centroMaterial1.size();
	}
	/**
	 * Returns an array containing all of the elements in this list in proper sequence.
	 * @return  an array containing all of the elements in this list in proper sequence.
	 * @see java.util.List#toArray()
	 * @uml.property  name="centroMaterial1"
	 */
	public CentroMaterial[] centroMaterial1ToArray() {
		return (CentroMaterial[]) centroMaterial1
				.toArray(new CentroMaterial[centroMaterial1.size()]);
	}
	/**
	 * Returns an array containing all of the elements in this list in proper sequence; the runtime type of the returned array is that of the specified array.
	 * @param a  the array into which the elements of this list are to be stored.
	 * @return  an array containing all of the elements in this list in proper sequence.
	 * @see java.util.List#toArray(Object[])
	 * @uml.property  name="centroMaterial1"
	 */
	public CentroMaterial[] centroMaterial1ToArray(
			CentroMaterial[] centroMaterial1) {
		return (CentroMaterial[]) this.centroMaterial1.toArray(centroMaterial1);
	}
	/**
	 * Inserts the specified element at the specified position in this list (optional operation)
	 * @param index  index at which the specified element is to be inserted.
	 * @param element  element to be inserted.
	 * @see java.util.List#add(int,Object)
	 * @uml.property  name="centroMaterial1"
	 */
	public void addCentroMaterial1(int index, CentroMaterial centroMaterial) {
		centroMaterial1.add(index, centroMaterial);
	}
	/**
	 * Appends the specified element to the end of this list (optional operation).
	 * @param element  element to be appended to this list.
	 * @return  <tt>true</tt> (as per the general contract of the <tt>Collection.add</tt> method).
	 * @see java.util.List#add(Object)
	 * @uml.property  name="centroMaterial1"
	 */
	public boolean addCentroMaterial1(CentroMaterial centroMaterial) {
		return centroMaterial1.add(centroMaterial);
	}
	/**
	 * Removes the element at the specified position in this list (optional operation).
	 * @param index  the index of the element to removed.
	 * @return  the element previously at the specified position.
	 * @see java.util.List#remove(int)
	 * @uml.property  name="centroMaterial1"
	 */
	public Object removeCentroMaterial1(int index) {
		return centroMaterial1.remove(index);
	}
	/**
	 * Removes the first occurrence in this list of the specified element  (optional operation).
	 * @param element  element to be removed from this list, if present.
	 * @return  <tt>true</tt> if this list contained the specified element.
	 * @see java.util.List#remove(Object)
	 * @uml.property  name="centroMaterial1"
	 */
	public boolean removeCentroMaterial1(CentroMaterial centroMaterial) {
		return centroMaterial1.remove(centroMaterial);
	}
	/**
	 * Removes all of the elements from this list (optional operation).
	 * @see java.util.List#clear()
	 * @uml.property  name="centroMaterial1"
	 */
	public void clearCentroMaterial1() {
		centroMaterial1.clear();
	}
	/**
	 * Setter of the property <tt>centroMaterial1</tt>
	 * @param centroMaterial1  the centroMaterial1 to set.
	 * @uml.property  name="centroMaterial1"
	 */
	public void setCentroMaterial1(ArrayList centroMaterial1) {
		this.centroMaterial1 = centroMaterial1;
	}
	
	

}
